package com.kangaroo.myhome.controller;

import java.io.File;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

import javax.servlet.http.HttpServletRequest;

import com.kangaroo.myhome.service.impl.TInspProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import com.kangaroo.myhome.model.TSysFile;
import com.kangaroo.myhome.service.impl.FileService;
import com.kangaroo.myhome.utils.SecurityUtils;
import com.kangaroo.myhome.vo.ResponseModel;

import tk.mybatis.mapper.util.StringUtil;

/**
 * @ClassName UploadController
 * @Description TODO
 * @Author kangaroo
 * @Date 2020/8/2 17:24
 * @Version 1.0
 **/
@Controller
@RequestMapping("report")
public class DataController {

    @Autowired
    private TInspProjectService tInspProjectService;

    @GetMapping(value = "/findReportData")
    public ResponseModel findReportData(HttpServletRequest request) {
        ResponseModel model = new ResponseModel();
        String subway = request.getParameter("subway");
        return tInspProjectService.findReportData(subway);
    }

}
